# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>

pkgname=python-thrift
pkgver=0.19.0
pkgrel=1
pkgdesc='Python bindings for the Apache Thrift RPC system'
arch=(loong64 x86_64)
license=(Apache)
url='https://thrift.apache.org/'
depends=(python python-six)
makedepends=(python-setuptools)
source=(https://dlcdn.apache.org/thrift/$pkgver/thrift-$pkgver.tar.gz)
sha256sums=('d49c896c2724a78701e05cfccf6cf70b5db312d82a17efe951b441d300ccf275')

check() {
  cd thrift-$pkgver/lib/py
  # python setup.py test TODO: run tests
}

package() {
  cd thrift-$pkgver/lib/py
  python setup.py install --root="$pkgdir" --optimize=1
}
